<template>
  <div class="hello">
   {{msg}}
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  methods:{
    readly(){

    },
  },
  mounted(){
    this.VueEvent.$on('to-HelloWorld',(data)=>{
      console.log(data);
      this.readly()
    })
  }
}
</script>
<style scoped lang="scss">

</style>
